//package com.qiyu.bigdata.reportexcel.controller;
//
//
//import com.qiyu.bigdata.reportexcel.entity.ReportInfo;
//import com.qiyu.bigdata.reportexcel.jobs.ReportJob;
//import com.qiyu.bigdata.reportexcel.mapper.ReportMapper;
//import com.qiyu.bigdata.reportexcel.service.MailService;
//import org.apache.commons.logging.Log;
//import org.apache.commons.logging.LogFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//import java.util.Map;
//
//@RestController
//public class JobController {
//
//    private final Log logger = LogFactory.getLog(getClass());
//
//    @Autowired
//    ReportMapper reportMapper;
//
//    @Autowired
//    MailService mailSender;
//
//    @Autowired
//    ReportJob reportJob;
//
//    @GetMapping("/index")
//    public String index() {
//        return "hello";
//    }
//
//    @GetMapping("/report/{id}")
//    public List<ReportInfo> getBookReport(@PathVariable("id") Integer id) {
////        return repository.findReport(id);
//        return reportMapper.findByBookId(id);
//    }
//
//
//    @GetMapping("/reportExcel/{id}")
//    public String ExcelJob(@PathVariable("id") Integer id, @RequestBody Map<String, Object> data) {
//        reportJob.doJob(id, data);
//        return "ok";
//    }
//
//    @GetMapping("/reportEmail/{id}")
//    public String reportEmail(@PathVariable String id) {
//
//        return "ok";
//    }
//}
